package com.shilin.watchsystem.enums;


public enum ResultEnum {
    seller_store_not_exist(1,"管理员店铺id为空"),

    SYS_BUSY(0, "系统繁忙"),

    INSUFFICIENT_AUTHORITY(10, "权限不足"),

    PARAM_ERROR(20, "参数不正确"),

    NO_LOGIN(444, "未登录"),

    PASSWORD_ERROR(555, "密码错误"),

    OLD_PASSWORD_ERROR(555, "旧密码 错误"),

    ERROR_999(999, "操作频繁，请稍后再试"),

    LOGIN_ERROR(1000, "登陆异常"),

    USERNAME_OR_PSW_ERROR(1010, "账号或密码错误"),

    CODE_CAN_NOT_EMPTY(1020, "请输入 验证码"),

    SESSION_CODE_IS_EMPTY(1030, "请获取 验证码"),

    CODE_ERROR(1040, "验证码 错误"),

    ROLE_NOT_EXIST(1050, "角色不存在"),

    MENU_NOT_EXIST(1060, "菜单不存在"),

    ADMIN_HAD_EXIST(1070, "账号已存在或已经被占用"),

    ADMIN_NOT_EXIST(1080, "管理员不存在"),

    ACCOUNT_OR_PSW_ERROR(1081, "账号或密码错误"),

    FORMAT_ERROR(1090, "格式 错误"),

    NUMERICAL_VALUE_ERROR(1100, "数值 不在范围内"),

    ERROR_1300(1300, "token不存在"),

    PARAM_NULL(1400,"参数空值异常"),

    ACCOUNT_NOT_USE(1500,"账号禁用")
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
